﻿{include file="public/header"}
<title>接单提醒</title>
</head>
<style>
    .layui-layer-page .layui-layer-content{
        overflow: visible !important;
    }
    .layui-layer-setwin{
        display: none;
    }
</style>
<body>
<article class="page-container">
    <form action="" method="post" class="form form-horizontal" id="form-member-add">
        <div class="ch-row ch-info-form">
            <p class="flex1">转介绍意愿度：</p>
            <div class="flex2 ch-row">
                <select class="form-control" name="full">
                    <option value="十分愿意" >十分愿意</option>
                    <option value="有可能" >有可能</option>
                    <option value="不愿意" >不愿意</option>
                </select>
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <p class="flex1">是否接通：</p>
            <div class="flex2 ch-row" style="align-items: center">
                <input type="radio" checked="checked" value="1"  name="connect" >是&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="radio"  value="0" name="connect"  >否
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <p class="flex1">反馈信息：</p>
            <div class="flex2 ch-row">
                <textarea placeholder="请填写反馈信息" name="content" class="form-control"></textarea>
                <input type="hidden" value="{$data}" name="order_id">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <p class="flex1">哪些服务不满意：</p>
            <div class="flex2 ch-row">
                <textarea placeholder="请填写信息" name="dissatisfied" class="form-control"></textarea>
                <input type="hidden" value="{$data}" name="order_id">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <p class="flex1">体验最好的地方：</p>
            <div class="flex2 ch-row">
                <textarea placeholder="请填写信息" name="best" class="form-control"></textarea>
                <input type="hidden" value="{$data}" name="order_id">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <p class="flex1">客户满意度：</p>
            <div class="flex2 ch-pc-row" style="align-items: center;">
                <div class="ch-info-select"><input type="radio" name="score" value="1" style="margin: 0">1分</div>
                <div class="ch-info-select"><input type="radio" name="score" value="2" style="margin: 0">2分</div>
                <div class="ch-info-select"><input type="radio" name="score" value="3" style="margin: 0">3分</div>
                <div class="ch-info-select"><input type="radio" name="score" value="4" style="margin: 0">4分</div>
                <div class="ch-info-select"><input type="radio" name="score" value="5" style="margin: 0">5分</div>
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <p class="flex1">回访人员：</p>
            <div class="flex2 ch-row">
                <input type="text" class="form-control"  placeholder="回访人员" name="people">
            </div>
        </div>
        <div class="ch-row ch-info-form">
            <div class="flex1">
                <button class="btn btn-primary radius" type="button"><i class="Hui-iconfont">&#xe632;</i> 提交</button>
            </div>
        </div>
    </form>
</article>


{include file="public/footer"}
<script type="text/javascript">
    /**
     * 发送
     */

    $('.radius').click(function () {
        var src="{:Url('index/order/hui')}";

            $.ajax({
                type: 'POST',
                url: src,
                dataType: 'json',
                data:$('form').serializeArray(),
                success: function (data) {
                    var res=JSON.parse(data);
                    if(res.code==200){
                        layer.msg(res.msg, {icon: 1, time: 2000}, function () {
                            parent.location.reload()
                        });
                    }else{
                        layer.msg(res.msg,{icon: 5,time:1000});
                    }

                },
                error: function (data) {
                    console.log(data.msg);
                },
            });

    });

</script>
</body>
</html>